<?php PageUtil::addVar("stylesheet","<link href=\"".$stylepath."/widget.css\" rel=\"stylesheet\">");
  if(!empty($listpost)){
?>
<div class="container sidebar post_explaination">
  <h2><img src="<?php echo $imagepath;?>/topic_icon.png" alt="กระทู้ทั้งหมด"> กระทู้ล่าสุด</h2>
    <ul class="alltopic-widget">
    <?php
        foreach ($listpost as $key => $value) {
    ?>
      <a class="title-link" href="<?php echo base_url('forum/view/'.$value["url"]);?>" target="_blank">
        <li>
          <strong><?php echo $value["title"];?></strong>
        </li>
      </a>
    <?php 
        }
    ?>
    </ul>
    <hr />
          <a href="<?php echo base_url("forum");?>" class="btn pull-right btn-mini">ดูกระทู้ทั้งหมด</a>
</div>
<?php
  }
?>
<div>
  <img src="<?php echo $imagepath;?>/banner-promote-tent.png">
</div>